<!--
<template>
  <div>
    hahah
    <comp1>
      <div slot-scope="scope">{{scope.a}}</div>
    </comp1>
  </div>
</template>
-->

<script>
export default {
  components: {
    comp1: require('./comp1.vue').default
  },
  render (createElement) {
    const a = createElement( // a是一个虚拟DOM节点
      'div',
        ['hahah', createElement('comp1', {
          scopedSlots: {
            default: function (scope) {
              return createElement('div', scope.a)
            }
          }
        })]
      )
    return a
  }
}
</script>
